import random

def generate_random_array(size, lower_bound, upper_bound):
    return [random.randint(lower_bound, upper_bound) for i in range(size)]
